package com.lei.emos.wx.controller.form;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@ApiModel
@Data
public class RegisterForm {

    @NotBlank(message = "注册码不能为空")
    @Pattern(regexp = "^[0-9]{6}$",message = "注册码必须是6位数字")
    @ApiModelProperty(value="注册码")
    private String registerCode;

    @NotBlank(message = "微信临时授权码不能为空")
    @ApiModelProperty(value="临时授权码")
    private String code;

    @NotBlank(message = "昵称不能为空")
    @ApiModelProperty(value="昵称")
    private String nickname;

    @NotBlank(message = "头像不能为空")
    @ApiModelProperty(value="头像")
    private String photo;
}
